package com.five.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.five.basic.query.BaseQuery;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Author extends BaseQuery implements Serializable {

    private Long id;
    private String username;
    private String password;
    private String penName;
    private String avatar;
    private String phone;
    private String email;
    private String salt;
    private String intro;
    private Integer status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastLoginTime;
    private Long logininfoId;


    // 显示注册天数
    private Long registerDays;
}